{layout name="layout" /}
<div class="table-tip fn-clear">
<form id="form" action="{:url('plus_exam/question/index',['type' => $type])}" method="get">
<input placeholder="标题关键字" class="input w300" type="text" name="keyword" value="{$keyword}"/>
<input type="submit" value="搜索" class="button button-blue" />
</form>
</div>
<table class="table">
    <colgroup>
        <col class="w40" />
        <col class="w140" />
        <col class="w140" />
        <col/>
        <col/>
        <col class="w80" />
        <col class="w140" />
        <col class="w140" />
        <col class="w120" />
    </colgroup>
    <thead>
        <tr>
            <th class="fn-tac">#</th>
            <th>题库类型</th>
            <th>题目类型</th>
            <th>题目</th>
            <th>选项</th>
            <th>正确答案</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
{volist name="question_list" id="rs"}
    <tr>
        <td class="fn-tac">{$rs.id}</td>
        <td>{$rs.category}</td>
        <td>{$rs.type_name}</td>
        <td>{$rs.content}</td>
        <td>{volist name="rs['option_list']" id="son_rs"}<span class="red">{$key}</span>:{$son_rs};{/volist}</td>
        <td class="fn-tac">{$rs.answer}</td>
        <td>{$rs.create_time}</td>
        <td>{$rs.update_time}</td>
        <td>
            <a class="a-button a-blue" href="{:url('plus_exam/question/edit',['id'=>$rs.id])}"><i class="iconfont icon-edit"></i> {$Think.lang.lang_ui_edit}</a>
            <a class="a-button isDel" url="{:url('plus_exam/question/delete',['id'=>$rs.id])}" href="javascript:;" data-rules="delete"><i class="iconfont icon-lajixiang"></i> {$Think.lang.lang_ui_delete}</a>
        </td>
    </tr>
{/volist}
</tbody>
</table>
<div class="page">{$page}</div>
<script type="text/javascript">
Do('base','layer',function(){
    $('.isDel').isDel();
})
</script>